package org.lk.common.log;

public class CdcJobContext {
    private final String jobLogFileName;

    public CdcJobContext(String jobLogFileName) {
        this.jobLogFileName = jobLogFileName;
    }

    public String getJobLogFileName() {
        return jobLogFileName;
    }

    private static InheritableThreadLocal<CdcJobContext> contextHolder = new InheritableThreadLocal<CdcJobContext>();

    public static void setXxlJobContext(CdcJobContext xxlJobContext) {
        contextHolder.set(xxlJobContext);
    }

    public static CdcJobContext getXxlJobContext() {
        return contextHolder.get();
    }

}